Diversifying Focused Testing for Unit Testing

نویسندگان

چکیده

Software changes constantly, because developers add new features or modifications. This directly affects the effectiveness of test suite associated with that software, especially when these modifications are in a specific area no case covers. article tackles problem generating high-quality to cover repeatedly given point program, ultimate goal exposing faults possibly affecting program point. Both search-based software testing and constraint solving offer ready, but low-quality, solutions this: Ideally, maximally diverse covering set is required, whereas search tend generate sets biased distributions. Our approach, Diversified Focused Testing (DFT), uses strategy inspired by GödelTest. We artificially inject parameters into code branching conditions use bi-objective algorithm find inputs perturbing injected parameters, while keeping path still satisfiable. results demonstrate our technique, DFT, able desired at least 90% time. Moreover, adding diversity improves bug detection mutation killing abilities suites. show DFT achieves better than focused testing, symbolic execution, random achieving from 3% 70% improvement score up 100% fault across 105 subjects.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Retrofitting Unit Tests for Parameterized Unit Testing

Recent advances in software testing introduced parameterized unit tests (PUT), which accept parameters, unlike conventional unit tests (CUT), which do not accept parameters. PUTs are more beneficial than CUTs with regards to fault-detection capability, since PUTs help describe the behaviors of methods under test for all test arguments. In general, existing applications often include manually wr...

متن کامل

Testing for Seasonal Unit Roots

This paper examines, both theoretically and through Monte Carlo analysis, the implications of applying the HEGY seasonal root tests to a process that is periodically integrated. As an important special case, the random walk process is also considered. In the context of the HEGY regression, the asymptotic distribution of the zero frequency test statistic is dependent on the coefficients of the p...

متن کامل

Endo-Testing: Unit Testing with Mock Objects

Unit testing is a fundamental practice in Extreme Programming, but most non-trivial code is difficult to test in isolation. It is hard to avoid writing test suites that are complex, incomplete, and difficult to maintain and interpret. Using Mock Objects for unit testing improves both domain code and test suites. They allow unit tests to be written for everything, simplify test structure, and av...

متن کامل

Linguistic Support for Unit Testing

Existing systems for writing unit tests exploit built-in language constructs, such as reflection, to simulate the addition of testing constructs. While these simulations provide the minimally necessary functionality, they fail to support testing properly in many instances. In response, we have designed, implemented, and evaluated extensions for Java that enable programmers to express test cases...

متن کامل

EATOOS-Testing Tool for Unit Testing of Object Oriented Software

With the advent of Object Oriented programming, most of the software being built is using object oriented programming languages. The major challenge lies with testing the software and it is a known fact that testing consumes around 40% of the time in the total software development process. If more number of errors are uncovered in the unit testing phase itself then the probability of propagatio...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

ژورنال

عنوان ژورنال: ACM Transactions on Software Engineering and Methodology

سال: 2021

ISSN: ['1049-331X', '1557-7392']

DOI: https://doi.org/10.1145/3447265